package com.aiyige.base.eventbus;

/**
 * Created by zhuyakun on 2018/1/25.
 */

public class EventNewMessageChanged {
    int type;
    boolean dontRequestData;

    public EventNewMessageChanged() {
        dontRequestData = false;
    }

    private EventNewMessageChanged(Builder builder) {
        setType(builder.type);
        setDontRequestData(builder.dontRequestData);
    }

    public static Builder newBuilder() {
        return new Builder();
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public boolean isDontRequestData() {
        return dontRequestData;
    }

    public void setDontRequestData(boolean dontRequestData) {
        this.dontRequestData = dontRequestData;
    }

    public static final class Builder {
        private int type;
        private boolean dontRequestData;

        private Builder() {
            dontRequestData = false;
        }

        public Builder type(int val) {
            type = val;
            return this;
        }

        public Builder dontRequestData(boolean val) {
            dontRequestData = val;
            return this;
        }

        public EventNewMessageChanged build() {
            return new EventNewMessageChanged(this);
        }
    }
}

